package net.huashitong.ssydt.provider.money.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import net.huashitong.ssydt.PaginationResult;
import net.huashitong.ssydt.money.entity.SsMoneyGoldRecord;
import net.huashitong.ssydt.money.entity.vo.SsMoneyGoldRecordQueryInVO;
import net.huashitong.ssydt.provider.money.service.SsMoneyGoldRecordService;
import net.huashitong.ssydt.provider.web.model.Result;
import net.huashitong.ssydt.provider.web.utils.ResultUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hemj
 * @version 2017/8/21
 */
@Api(value = "/money/gold/record", tags = {"账户金币记录管理（后台）"})
@RestController
@RequestMapping("/money/gold/record")
public class SsMoneyGoldRecordController {
	@Autowired
	private SsMoneyGoldRecordService ssMoneyGoldRecordService;

	@ApiOperation(value = "账户金币记录列表", notes = "账户金币记录列表")
	@GetMapping
	public Result<PaginationResult<SsMoneyGoldRecord>> paginationQuery(@ModelAttribute SsMoneyGoldRecordQueryInVO ssMoneyGoldRecordQueryInVO) {
		return ResultUtils.getSuccessResults(ssMoneyGoldRecordService.paginationQuery(ssMoneyGoldRecordQueryInVO));
	}

}
